package com.ruoyi.common.core.domain.entity.system;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 全国城市信息对象 sys_city_info
 *
 * @author zjw
 * @date 2023-10-07
 */
public class SysCityInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 地区名称
     */
    @Excel(name = "地区名称")
    private String areaName;

    /**
     * 地区编码
     */
    @Excel(name = "地区编码")
    private Integer areaCode;

    /**
     * 城市编码
     */
    @Excel(name = "城市编码")
    private String cityCode;

    /**
     * 地区等级
     */
    @Excel(name = "地区等级")
    private Integer level;

    /**
     * 地区索引
     */
    @Excel(name = "地区索引")
    private String areaIndex;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaCode(Integer areaCode) {
        this.areaCode = areaCode;
    }

    public Integer getAreaCode() {
        return areaCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getLevel() {
        return level;
    }

    public void setAreaIndex(String areaIndex) {
        this.areaIndex = areaIndex;
    }

    public String getAreaIndex() {
        return areaIndex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("areaName", getAreaName())
                .append("areaCode", getAreaCode())
                .append("cityCode", getCityCode())
                .append("level", getLevel())
                .append("areaIndex", getAreaIndex())
                .toString();
    }
}
